//
//  MeNameView.m
//  BGM
//
//  Created by liuqin on 2018/11/26.
//  Copyright © 2018年 com.alirtc.demo. All rights reserved.
//

#import "MeNameView.h"
#import "Common.h"
@implementation MeNameView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self != nil) {
//        self.backgroundColor = [UIColor redColor];
        
        float centerY = frame.size.height/2;
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, centerY-30, SCREENW, 30)];
        self.nameLabel.text = @"来日尚晚";
        self.nameLabel.font = [UIFont systemFontOfSize:20];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.nameLabel];
        
        
        UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, centerY, SCREENW, 20)];
        label.text = @"点击查看/编辑";
        label.textColor = bgmgrayColor;
        label.font = [UIFont systemFontOfSize:14];
        label.textAlignment = NSTextAlignmentCenter;
        [self addSubview:label];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
